package com.basic.business.declineBacklog.mapper;


import com.basic.business.declineBacklog.domain.TDeclineBacklog;
import com.basic.business.declineWarnBoard.vo.DeclineReplayCollectRespVo;
import com.basic.business.declineWarnBoard.vo.DeclineReplayPageReqVo;
import com.basic.business.declineWarnBoard.vo.DeclineReplayRespVo;
import com.basic.common.core.mapper.BaseMapper;

import java.util.List;

/**
 * 下滑预警待办事项Mapper接口
 *
 * @author zhaoxy_jn@163.com
 */
public interface TDeclineBacklogMapper extends BaseMapper<TDeclineBacklog> {

    /**
     * 根据商品id获取近1个月待办事项数量
     * @param goodsId
     * @return
     */
    public int getBackLogCountByGoodsId(String goodsId);

    /**
     * 获取下滑预警复盘数据列表
     * @param declineReplayPageReqVo
     * @return
     */
    List<DeclineReplayRespVo> getOptimizeList(DeclineReplayPageReqVo declineReplayPageReqVo);

    /**
     * 链接数据复盘汇总数据
     * @param declineReplayPageReqVo
     * @return
     */
    DeclineReplayCollectRespVo getDeclineManageCollectData(DeclineReplayPageReqVo declineReplayPageReqVo);
}
